<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="/第三章/js/vue.min.js"></script>
    
    <title>DEMO</title>
    <style>
        .classA{color: red;}
    </style>
</head>

<body>
    <div id="app">
     <div v-bind:class="{'classA': isRed}">我是v-bind指令，绑定class属性</div>
     <div v-bind:stytle="{ fontSize: size + 'px'}">我是v-bind指令，绑定stytle属性</div>
    
</div>
   
</body>
<script>
         
         var vm=new Vue({
        el:"#app",
        data:{
            isRed:true,
            size:20
        }
    })
   
</script>
</html>